import React from 'react' 

import { Image, Text , View } from '@tarojs/components'

import './comment.scss'

function book({handleClick,bookMsg}){

  const handleInput = ()=>{
    handleClick && handleClick()
  }

  return (
    <View className='book' onClick={handleInput}>
      <View className='img-warpper'>
        <Image className='book-img' src={bookMsg.src}  />
      </View>
      <Text className='book-name'>{bookMsg.name}</Text>
    </View>
  )
}




export default book

